import {defineStore} from 'pinia';
import { reactive } from 'vue';

export const useUserStore = defineStore("user",()=>{
    const user = reactive({
        username:"",
        token:""
    })
    return{
        user
    }
},{
    //插件将当前的 Pinia 商店（store）的状态持久化到本地存储中
    persist:true
}

)
